/* 主要CSS样式文件 */

/* iOS状态栏样式 */
.status-bar {
    height: 44px;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    position: relative;
    z-index: 10;
}

.status-bar-time {
    font-weight: 600;
    font-size: 15px;
}

.status-bar-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 底部标签栏样式 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    padding: 10px 0;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
    z-index: 100;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8e8e93;
    font-size: 10px;
    padding: 4px 0;
}

.tab-icon {
    margin-bottom: 4px;
}

.tab-item.active {
    color: #007aff;
}

/* 快捷记账按钮 */
.quick-entry-button {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: #007aff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 101;
}

/* 图表样式 */
.chart-container {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

/* 账单列表项 */
.bill-item {
    background-color: white;
    padding: 12px;
    display: flex;
    align-items: center;
}

.bill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.bill-content {
    flex: 1;
}

.bill-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.bill-detail {
    font-size: 12px;
    color: #8e8e93;
}

.bill-amount {
    font-weight: 600;
}

.expense {
    color: #ef4444;
}

.income {
    color: #10b981;
}

/* 输入表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #007aff;
    color: white;
}

.btn-primary:active {
    background-color: #0062cc;
}

.btn-secondary {
    background-color: #f2f2f7;
    color: #007aff;
}

.btn-secondary:active {
    background-color: #e5e5ea;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 16px;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 85%;
    max-width: 340px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 动画 */
.page-transition {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide-in {
    transform: translateX(100%);
    opacity: 0;
}

.slide-in.active {
    transform: translateX(0);
    opacity: 1;
}

/* 无障碍设计 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
} 


 /* 底部导航栏样式 */
 .bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #eee;
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #666;
  text-decoration: none;
}
.nav-item.active {
  color: #007aff;
}
.nav-icon {
  margin-bottom: 3px;
}
